<?php
/**
 * Created by PhpStorm.
 * User: shibing
 * Date: 2018/9/12
 * Time: 16:53
 */

namespace app\http\middleware;
class After{
    public function handle($request, \Closure $next)
    {
        $response = $next($request);

        // 添加中间件执行代码
        echo 2;

        return $response;
    }
}